<template>
  <div>这是child2组件 - {{ oddArr }} - <button @click="fn">btn</button></div>
</template>

<script>
import { mapGetters, mapActions } from "vuex";
export default {
  computed: mapGetters(["oddArr"]),
  methods: {
    fn() {
      // this.$store.dispatch("asyncIncrement", { a: 8 });
      this.asyncIncrement({ a: 8 });
    },
    ...mapActions(["asyncIncrement"]),
  },
};
</script>
